﻿using Grow.Module.Service;

namespace Grow.Module.AspNetCore
{
    public abstract class AspNetCoreModuleBase : ModuleBase, IAspNetCoreModule
    {
        public override void AddDependModule(IDependModuleBuilder dependModuleBuilder)
        {
        }


        public override void UseService(IServiceContext serviceContext)
        {
            if (serviceContext is IApplicationServiceContext applicationServiceContext)
            {
                UseService(applicationServiceContext);
            }
        }

        public abstract void UseService(IApplicationServiceContext applicationServiceContext);


    }
}